package com.suixinsanren.design.command.demo01;

public class Light {

    private String name;
    private String location;

    public Light(String name, String location) {
        this.name = name;
        this.location = location;
    }

    public void on() {
        System.out.println(location + "的" + name + "灯" + "已打开");
    }

    public void off() {
        System.out.println(location + "的" + name + "灯" + "已关闭");
    }

}
